package com.yanfan.energy.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author caijinkang
 * @date 2023年02月10日 17:31
 */
public class TaskItemBody {
    /**
     * 任务项名称
     *
     * @author caijinkang
     * @date 2023/2/10 17:31
     * @param null
     * @return null
     */
    private String itemName;
    /**
     * 任务项数量
     *
     * @author caijinkang
     * @date 2023/2/10 17:31
     * @param null
     * @return null
     */
    private String itemNumber;
    /**
     * 任务项开始时间
     *
     * @author caijinkang
     * @date 2023/2/10 17:32
     * @param null
     * @return null
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date beginDate;
    /**
     * 任务项结束时间
     *
     * @author caijinkang
     * @date 2023/2/10 17:32
     * @param null
     * @return null
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date endDate;
    /**
     * 图片地址
     *
     * @author caijinkang
     * @date 2023/2/10 17:33
     * @param null
     * @return null
     */
    private String imgURL;

    public TaskItemBody() {
    }

    public TaskItemBody(String itemName, String itemNumber, Date beginDate, Date endDate, String imgURL) {
        this.itemName = itemName;
        this.itemNumber = itemNumber;
        this.beginDate = beginDate;
        this.endDate = endDate;
        this.imgURL = imgURL;
    }

    @Override
    public String toString() {
        return "TaskItemBody{" + "itemName='" + itemName + '\'' + ", itemNumber='" + itemNumber + '\'' + ", beginDate=" + beginDate + ", endDate=" + endDate + ", imgURL='" + imgURL + '\'' + '}';
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getItemNumber() {
        return itemNumber;
    }

    public void setItemNumber(String itemNumber) {
        this.itemNumber = itemNumber;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getImgURL() {
        return imgURL;
    }

    public void setImgURL(String imgURL) {
        this.imgURL = imgURL;
    }
}
